MUIPointSizeToLogicalUnitΒΆ
MUIPointSizeToLogicalUnit, hWin:MUIWND, PointSize:MUIVALUE
Convert font point size eg 12
to logical unit size for use with CreateFont or CreateFontIndirect
Parameters
- [in] hWin - handle to window to use dc for converting the point size to logical size
- [in] PointSize - a value representing the point size to convert
Return
Returns the font height for the point size specified
Example
LOCAL dwFontHeight:DWORD
MUIPointSizeToLogicalUnit, hWin, 12
mov dwFontHeight, eax
Invoke CreateFont, dwFontHeight, ...
See Also